<?php
/**
 * ExtFileUploadField class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtFileUploadField extends ExtFileUploadFieldBase
{
    /**
     * Gets the value of ExtJS buttonOffset property
     * @return Number 
     */
    public function getButtonOffset()
    {
    	return $this->getConfig("buttonoffset");
    }

    /**
     * Sets the value of ExtJS buttonOffset property
     * @param Number $value 
     */
    public function setButtonOffset($value)
    {
    	$this->setConfig("buttonoffset",$value);
    }

    /**
     * Gets the value of ExtJS buttonOnly property
     * @return Boolean 
     */
    public function getButtonOnly()
    {
    	return $this->getConfig("buttononly");
    }

    /**
     * Sets the value of ExtJS buttonOnly property
     * @param Boolean $value 
     */
    public function setButtonOnly($value)
    {
    	$this->setConfig("buttononly",$value);
    }

    /**
     * Gets the value of ExtJS buttonText property
     * @return String 
     */
    public function getButtonText()
    {
    	return $this->getConfig("buttontext");
    }

    /**
     * Sets the value of ExtJS buttonText property
     * @param String $value 
     */
    public function setButtonText($value)
    {
    	$this->setConfig("buttontext",$value);
    }

    /**
     * Gets the value of ExtJS enableTabbing property
     * @return Boolean 
     */
    public function getEnableTabbing()
    {
    	return $this->getConfig("enabletabbing");
    }

    /**
     * Sets the value of ExtJS enableTabbing property
     * @param Boolean $value 
     */
    public function setEnableTabbing($value)
    {
    	$this->setConfig("enabletabbing",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'buttonoffset' => 'buttonOffset',
            'buttononly' => 'buttonOnly',
            'buttontext' => 'buttonText',
            'enabletabbing' => 'enableTabbing'
        ));



        $this->proptags = array_merge($this->proptags,array(
            'buttonconfig' => true
        ));
        $this->setXType('fileuploadfield');
        $this->setXClass('Ext.ux.form.FileUploadField');
    }    
}
?>